package com.iyundao.io.mapper;

import com.iyundao.io.model.ActivityImage;

import static org.apache.ibatis.jdbc.SqlBuilder.*;

public class ActivityImageSqlProvider {

    public String insertSelective(ActivityImage record) {
        BEGIN();
        INSERT_INTO("activityimage");
        
        if (record.getId() != null) {
            VALUES("id", "#{id,jdbcType=INTEGER}");
        }
        
        if (record.getActivityid() != null) {
            VALUES("activityid", "#{activityid,jdbcType=INTEGER}");
        }
        
        if (record.getActivityimageurl() != null) {
            VALUES("activityimageurl", "#{activityimageurl,jdbcType=VARCHAR}");
        }
        
        if (record.getPartymemberid() != null) {
            VALUES("partymemberid", "#{partymemberid,jdbcType=INTEGER}");
        }


        return SQL();
    }
}